package com.jh.pattern.factory.simplefactory;

import com.jh.pattern.factory.ICourse;
import com.jh.pattern.factory.JavaCourse;

/**
 * @author JH_Wong
 * @projectName newforward
 * @title
 * @package com.jh.pattern.factory.simplefactory
 * @description
 * @date 2019-05-07 21:29
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        CourseFactory courseFactory = new CourseFactory();
        ICourse javaCourse = courseFactory.create(JavaCourse.class);
        javaCourse.study();
    }

}
